package com.fy.controller;

import com.fy.utils.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/job")
public class JobController {

  //  @Autowired
   // private XxlJobClient xxlJobClient;

    @GetMapping("/addstart/{id}")
    public Result addStart(@PathVariable int id){
        System.out.println(id);
     //   Long result = xxlJobClient.addAndStart("testDemo", "testDemo", "0/1 * * * * ?", "testDemo");
 //       return Result.success(result);
        return null;
    }
}
